<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/jsp/admin/includes/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>积分日志列表</title>
		<%@ include file="/WEB-INF/view/jsp/admin/includes/meta.jsp"%>
		<link type="text/css" rel="stylesheet" href="${ctx}/admin/css/admin.css" />
		<link href="${ctx}/widgets/extremecomponents/extremecomponents.css"
			type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
	</head>
	<body>
		<div class="container">
			<h3>
				积分日志列表
			</h3>
			
			<form action="${ctx}/admin/creditLog!list.do" method="post">
				用户名：<input type="text" id="username" name="username" value="${username }"/>&nbsp;&nbsp;
				昵称:<input type="text" id="nickName" name="nickName"  value="${nickName }"/>&nbsp;&nbsp;
				<input type="submit" value="查询" />&nbsp;&nbsp;
				<input type="button" onclick="resetPara();" value="清空查询条件"/>
			</form>
			<!-- start user list -->
			<ec:table items="page.result" var="creditLog" rowsDisplayed="10"
				autoIncludeParameters="true" retrieveRowsCallback="limit"
				action="${ctx}/admin/creditLog!list.do">
				<ec:row highlightRow="true">
					<ec:column property="rowcount" cell="rowCount" sortable="false"
						title="序号" width="30" />
					<ec:column property="username" title="用户名" sortable="true" />
					<ec:column property="nickName" title="用户昵称" sortable="true" />
					<ec:column property="creditRuleName" title="积分动作" width="100" />
					<ec:column property="operation.comment" title="操作" width="100" />
					<ec:column property="creditTypeTitle" title="积分类型" width="100" />
					<ec:column property="amount" title="积分值" width="55" sortable="true" />
					<ec:column property="createdDate" title="日期" width="138"
						sortable="true" cell="date" format="yyyy-MM-dd hh:mm:ss" />
				</ec:row>
			</ec:table>

		</div>
	</body>
</html>
<script>
	function resetPara(){
		$("#username").val("");
		$("#nickName").val("");
		$("#username").focus();
	}
</script>